package net.exoweb.animate.objects
{
    import net.exoweb.animate.objects.DisplayShape;

    public class Dot extends DisplayShape
    {
        private var _radius:Number;

        public function Dot(radius:Number=1, color:uint=0xFFFFFF, bm:String="normal")
        {
            super(color, bm);
            _radius = radius;
            display();
        }

        public function set radius(v:Number):void
        {
            _radius = v;
            display();
        }

        public function get radius():Number
        {
            return _radius;
        }

        override public function display():void
        {
            graphics.clear();
            graphics.beginFill(_color);
            graphics.drawCircle(0, 0, _radius);
            graphics.endFill();
        }
    }
}
